package com.tunxing.创建型.单例设计模式;

public class 懒汉式 {
    private static Person person;

    public static Person getPerson() {
        if (person == null) {
            Person person = new Person();
            return person;
        }
        return person;
    }
}
